local sk__huju = fk.CreateSkill {

  name = "sk__huju",

  tags = { Skill.Compulsory, },

}



sk__huju:addEffect(fk.TurnStart, {
  name = "sk__huju",
  anim_type = "drawcard",
  frequency = Skill.Compulsory,
  events = {fk.TurnStart},
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(sk__huju.name)
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    player:drawCards(4, sk__huju.name)
    if target == player and not player.dead then
      room:changeMaxHp(player, -1)
      if player.dead then return end
      room:handleAddLoseSkills(player, "-sk__huju|ex__zhiheng|sk__xionglve|sk__hufu")
    end
  end,
})

return sk__huju